// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 注册饿了么
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import Qs from 'qs'
// 导入axios
// import axios from './router/axios';
import axios from "axios";

Vue.prototype.qs = Qs;
Vue.prototype.$http = axios;

// 设置反向代理，前端请求默认发送到 http://localhost:7080/api
axios.defaults.baseURL = 'http://localhost:9999'

Vue.config.productionTip = false
Vue.use(ElementUI);
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App),
  components: { App },
  template: '<App/>'
})
